package cn.edu.xmu.oomall.customer.mapper.openfeign.Po;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author Suave
 * @date 2024/12/20
 */
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CouponAct {
    //优惠卷数量为0
    public static final Integer COUPON_ZERO = 0;
    //管理员id
    public static final Long ADMIN_ID = 0L;

    public static final Integer QUANTITY_TYPE_TOTAL = 0;
    public static final Integer QUANTITY_TYPE_LIMIT = 1;

    private Long id;
    private String name;
    private Integer quantity;
    private LocalDateTime couponTime;
    private Integer validTerm;
    private Integer quantityType;

    public Integer getQuantityType() {
        return quantityType;
    }

    public void setQuantityType(Integer quantityType) {
        this.quantityType = quantityType;
    }

    public Integer getValidTerm() {
        return validTerm;
    }

    public void setValidTerm(Integer validTerm) {
        this.validTerm = validTerm;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public LocalDateTime getCouponTime() {
        return couponTime;
    }

    public void setCouponTime(LocalDateTime couponTime) {
        this.couponTime = couponTime;
    }
}
